import request from "/@/utils/request"

/**
 * 获取工序以及对应产线
 * @param data
 */
export function GetProcessAndProductLine(data?: any) {
    return request({
        url: '/wms/process/GetProcessAndProductLine',
        method: 'post',
        data: data
    })
}
/**
 * 获取产线人员
 * @param data
 */
export function GetProductionlineUserList(data?: any) {
    return request({
        url: '/wms/InProduction/GetProductionlineUserList',
        method: 'post',
        data: data
    })
}
/**
 * 获取产线人员
 * @param data
 */
export function GetAllProductionlinePaged(data?: any) {
    return request({
        url: '/wms/InProduction/GetAllProductionlinePaged',
        method: 'post',
        data: data
    })
}
/**
 * 增加产线人员
 * @param data
 */
export function AddProductionLineUsers(data?: any) {
    return request({
        url: '/wms/InProduction/AddProductionLineUsers',
        method: 'post',
        data: data
    })
}

/**
 * 删除产线人员
 * @param data
 */
export function DeleteProductionLineUser(data?: any) {
    return request({
        url: '/wms/InProduction/DeleteProductionLineUser',
        method: 'post',
        data: data
    })
}

/**
 * 获取所有人员
 * @param data
 */
export function GetAllUsers(data?: any) {
    return request({
        url: '/wms/User/GetAllUsers',
        method: 'post',
        data: data
    })
}
/**
 * 获取所有人员(分页)
 * @param data
 */
export function GetAllUsersPaged(data?: any) {
    return request({
        url: '/wms/User/GetAllUsersPaged',
        method: 'post',
        data: data
    })
}
/**
 * 删除人员
 * @param data
 */
export function DeleteUser(data?: any) {
    return request({
        url: '/wms/User/DeleteUser',
        method: 'post',
        data: data
    })
}
/**
 * 新增或更新人员
 * @param data
 */
export function AddOrUpdateUser(data?: any) {
    return request({
        url: '/wms/User/AddOrUpdateUser',
        method: 'post',
        data: data
    })
}
/**
 * 导入人员
 * @param data
 */
export function ImportUser(data?: any) {
    return request({
        url: '/wms/User/ImportUser',
        method: 'post',
        data: data
    })
}